module.exports = {
    transpileDependencies: [
        'vuetify'
    ],
    devServer: {
        open: process.platform === 'darwin',
        host: '127.0.0.1',
        port: 8080,
        proxy: { //配置跨域
            '/api': {
                target: 'http://82.156.11.176:8081',
                ws: true,
                changeOrigin: true, //允许跨域
                pathRewrite: {
                    // '^/api': '' //请求的时候使用这个api就可以
                },
            },
            '/coronaLmaoNinjaV2': { //外部api跨域代理
                target: 'https://corona.lmao.ninja/v2/',
                pathRewrite: {
                    '^/coronaLmaoNinjaV2': ''
                }
            },
            '/springTravel': {
                target: "https://v2.alapi.cn/api/",
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    // '^/springTravel':'',
                }
            }
        },
        https: false,
        hotOnly: false,
    },
}